package mtest3.day5;

public class Demo3 {
    public static void main(String[] args) {
        LinkStack ls = new LinkStack();
        ls.push("aa");
        ls.push("bb");
        ls.push("cc");
        ls.push("dd");
        ls.push("ee");
        ls.push("ff");
        System.out.println(ls.length());
        ls.display();

        System.out.println(ls.peek());

        System.out.println(ls.pop());
        System.out.println(ls.pop());
        System.out.println(ls.pop());

        ls.display();
        System.out.println(ls.length());
    }
}
